setGlobalDuration(-1)

inputMic(out='input', amplitude=.3)

attackDetector(input='input', trigbus='trig', attackthresh=-3, minthresh=-60)

tab = genRhythmTable()
pit = genDataTable([.5,.66,1,.75]*4)

metro(bus='met')

beginSequencer(input='met', table=tab, active=0, trigbus='trig', trigval=1)
sequencerPitchTable(pit)
pluckedString()
endSequencer()

startCsound()
